import java.util.Date;

public class SalesRecord {
    private Customer customer;
    private Car car;
    private SalesPerson sales;
    private Date date;
    private int carNumbers;
    private int salesAmount;

    public SalesRecord(Customer customer, Car car, SalesPerson sales, Date date, int carNumbers) {
        this.customer = customer;
        this.car = car;
        this.sales = sales;
        this.date = date;
        this.carNumbers = carNumbers;
        this.salesAmount = carNumbers*car.getPrice();
    }

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public Car getCar() {
        return car;
    }

    public void setCar(Car car) {
        this.car = car;
    }

    public SalesPerson getSales() {
        return sales;
    }

    public void setSales(SalesPerson sales) {
        this.sales = sales;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public int getSalesAmount() {
        return salesAmount;
    }
    public int getCarNumbers() {
        return carNumbers;
    }

    public void setCarNumbers(int carNumbers) {
        this.carNumbers = carNumbers;
    }
}
